﻿using System;
using System.Collections.Generic;
using Rabbit.Logic;

namespace RabbitManage.UI
{
    public partial class ProductDetail : System.Web.UI.Page
    {
        protected Product product = null;
        protected Shop shop = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request["id"];
            if (string.IsNullOrEmpty(id)) return;
            product = RabbitUse.GetProductById(Db.Store, id);
            if (product == null) return;
            string shopId = product.ShopId;
            if(string.IsNullOrEmpty(shopId))return;

            shop = RabbitUse.GetShopByShopId(Db.Store, shopId);
            //List<DiliveryStrategy> strategy = RabbitUse.GetDiliveryStrategyList(Db.Store, shopId);
        }
    }
}